package com.ouc.yyi.springcloud.card.cardInfo.sevice.impl;

import com.ouc.yyi.springcloud.card.cardInfo.bo.CardBo;
import com.ouc.yyi.springcloud.card.cardInfo.mapper.CardInfoMapper;
import com.ouc.yyi.springcloud.card.cardInfo.sevice.CardInfoService;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class CardInfoServiceImpl implements CardInfoService {
    private static final Log logger = LogFactory.getLog(CardInfoServiceImpl.class);

    @Autowired
    private CardInfoMapper cardInfoMapper;

    @Override
    public CardBo getCardInfoByMobile(String mobile) {
        logger.info("当前用户的手机号:" + mobile);
        return cardInfoMapper.getCardInfoByMobile(mobile);
    }
}
